package com.xfcy.blog.controller.web;

import com.xfcy.blog.annotation.BusinessLogger;
import com.xfcy.blog.common.R;
import com.xfcy.blog.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 晓风残月Lx
 * @date 2023/4/18 9:27
 */
@RestController
@RequestMapping("/web/categorys")
@Api(tags = "分类接口")
@RequiredArgsConstructor
public class WebCategoryController {

    private final CategoryService categoryService;

    @BusinessLogger(value = "分类标签列表", type = "查询", desc = "分类标签列表")
    @GetMapping("/list")
    @ApiOperation(value = "分类标签列表", httpMethod = "GET", response = R.class, notes = "分类标签列表")
    public R categoryList() {
        return categoryService.categoryList();
    }

}
